<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title> Connexion </title>
	<link rel="stylesheet" type="text/css" href="${facesContext.externalContext.requestContextPath}/resource/css/Style.css" /> 
</h:head>
<h:body>
	<ui:include src="/entete.xhtml" />

	<h:form id = "inscription">

         <fieldset>

            <legend>Connexion</legend>

				<table width = "60%">
				<tr>
					<td>
						<p:outputLabel for="identifiant"> Identifiant <span class="requis"></span></p:outputLabel>
					</td>
					<td>
				  		<p:inputText id="identifiant" value="#{beanConnexion.id}"  size="20" maxlength="20"  />
            			<p:message id="identifiantMessage" for="identifiant" errorClass="erreur" />
            		</td>
				</tr>
				<tr>
					<td>
						<p:outputLabel for="motDePasse" >mot de passe <span class="requis"></span></p:outputLabel>
					</td>
					<td>
            			<p:password id="motDePasse" value="#{beanConnexion.password}" required="true" size="20" maxlength="20"  />
            			<p:message id="nomMessage" for="motDePasse" errorClass="erreur" />
					</td>
				</tr>
			</table>
			
			<p:messages globalOnly="true" infoClass="info" />
			<h:commandButton class="boutonInscription" value="connexion" action="#{beanConnexion.loginProject}" styleClass="sansLabel" />
			
			</fieldset>
			</h:form>
		
	<ui:include src="/Pied.xhtml" />
</h:body>
</html>